import request from '@/utils/request'

// 查询预警指标配置明细列表
export function listInfos(query) {
  return request({
    url: '/system/infos/list',
    method: 'get',
    params: query
  })
}

// 查询预警指标配置明细详细
export function getInfos(ewInfoId) {
  return request({
    url: '/system/infos/' + ewInfoId,
    method: 'get'
  })
}

// 新增预警指标配置明细
export function addInfos(data) {
  return request({
    url: '/system/infos',
    method: 'post',
    data: data
  })
}

// 修改预警指标配置明细
export function updateInfos(data) {
  return request({
    url: '/system/infos',
    method: 'put',
    data: data
  })
}

// 删除预警指标配置明细
export function delInfos(ewInfoId) {
  return request({
    url: '/system/infos/' + ewInfoId,
    method: 'delete'
  })
}

// 导出预警指标配置明细
export function exportInfos(query) {
  return request({
    url: '/system/infos/export',
    method: 'get',
    params: query
  })
}